import yagmail

def sent_email(file):
    em=yagmail.SMTP(user="2834326498@qq.com",password="ygjjxpwwggovdcia",host="smtp.qq.com")
    em.send(to="2834326498@qq.com",subject="5.15",contents="接收",attachments=file)